package expressoes;

import java.util.HashMap;
import java.util.Vector;

public abstract class Unaria implements Expressao {
	
	Expressao exp;
	String operador;
	
	public Unaria(Expressao e) {
		exp = e;
	}

	@Override
	public abstract String getExpressao();

	@Override
	public Vector<String> getSubExpressoes() {
		
		Vector<String> sub = exp.getSubExpressoes();
		sub.add(getExpressao());
		
		return sub;
	}

	@Override
	public abstract String calcula(HashMap<String, String> hash);

	@Override
	public abstract HashMap<String, String> calculaSubExpressoes(
			HashMap<String, String> hash);

}
